/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import cn.webrx.util.DbUtil;

/**
 * <p>Project: jdbc202202 - Demo
 * <p>Powered by webrx On 2022-08-22 15:18:21
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo {
    public static void main(String[] args) {
        //var du = new DbUtil();
        //System.out.println(du.queryAll("select * from t_book"));
        //System.out.println(du.getVersion());

        //System.out.println(du.dbs());

        //du.connect("jdbc:mysql://localhost:3305/db","root","");
        //System.out.println(du.dbs());

        //System.out.println(du.tbs());
        //System.out.println(du.tbs("mysql"));

        //DbUtil du = new DbUtil();
        //System.out.println(du.dbs());

        //删除姓李的
        DbUtil du = new DbUtil();
        //int a = du.executeUpdate("delete from t where name like ?","李%");

        //int a = du.executeUpdate("insert into t value(?,?)",25,"李强");
        //int a = du.executeUpdate("update t set name = ? where name = ? and id = ?","李三强","李强",25);

        int a = du.executeUpdate("delete from t");
        System.out.println(a);
    }
}





